package com.laolei.dubbo.test;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

import com.alibaba.dubbo.common.serialize.support.SerializationOptimizer;
import com.laolei.dubbo.test.model.User;

/**
 * This class must be accessible from both the provider and consumer
 *
 * @author lishen
 */
public class SerializationOptimizerImpl implements SerializationOptimizer {

	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Collection getSerializableClasses() {
        List<Class> classes = new LinkedList<>();
        classes.add(User.class);
        return classes;
    }
}
